export const formItemLayout = {
  labelCol: {
    xs: { span: 25 },
    sm: { span: 8 },
  },
  wrapperCol: {
    xs: { span: 24 },
    sm: { span: 12 },
  },
};

export const drawerFormItemLayout = {
  labelCol: { span: 4 },
  wrapperCol: { span: 18 },
};

export const modalFormItemLayout = {
  labelCol: {
    xs: { span: 7 },
    sm: { span: 7 },
  },
  wrapperCol: {
    xs: { span: 12 },
    sm: { span: 12 },
  },
};

export const modalProps = {
  bodyStyle: {
    width: 720,
    maxHeight: 600,
  },
  width: 720,
};

const winWidth = (window.innerWidth - 256) * 0.8;

export const tableModalProps = {
  width: winWidth < 900 ? 900 : winWidth,
};

export const tableModalProps2 = {
  width: winWidth < 1200 ? 1200 : winWidth,
};
